package demo.aj;

public aspect ProfilingAspect {

    pointcut modelLayer():
      execution(* demo.model.Account.*(..));

    Object around() :modelLayer(){
        long start = System.currentTimeMillis();
        Object result = proceed();
        long cost = System.currentTimeMillis() - start;
        System.out.println("[ProfilingAspect]方法: 【" + thisJoinPoint.getSignature() + "】结束，用时: " + cost + "ms");
        return result;
    }
}
